Skip to content

chore: migrate to go1.26#5332

Merged
remyleone merged 4 commits into
scaleway:masterfrom
remyleone:go126
Feb 17, 2026
Merged

chore: migrate to go1.26#5332
remyleone merged 4 commits into
scaleway:masterfrom
remyleone:go126

Conversation

@remyleone

Copy link
Copy Markdown
Member

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Release note for CHANGELOG:


Copilot AI review requested due to automatic review settings February 16, 2026 10:04
@remyleone remyleone requested review from a team as code owners February 16, 2026 10:04
@remyleone remyleone requested review from Mia-Cross and removed request for a team February 16, 2026 10:04
@github-actions github-actions Bot added rdb Managed MySQL and PostgreSQL issues, bugs and feature requests load-balancer Load-balancer issues, bugs and feature requests instance Instance issues, bugs and feature requests k8s Kubernetes Kapsule issues, bugs and feature requests iot IoT issues, bugs and feature requests container Container issues, bugs and feature requests function Serverless function issues, bugs and feature requests redis Managed Redis issues, bugs and feature requests apple-silicon Apple Silicon issues, bugs and feature requests flexible-ip Flexible IP issues, bugs and feature requests baremetal vpcgw labels Feb 16, 2026
@codecov-commenter

codecov-commenter commented Feb 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.97938% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.44%. Comparing base (b82ddce) to head (3414ed2).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
core/reflect.go 0.00% 5 Missing ⚠️
internal/namespaces/baremetal/v1/custom_server.go 0.00% 5 Missing ⚠️
internal/namespaces/instance/v1/custom_server.go 25.00% 3 Missing ⚠️
...nal/namespaces/mongodb/v1alpha1/custom_instance.go 0.00% 2 Missing ⚠️
internal/namespaces/rdb/v1/custom_log.go 0.00% 2 Missing ⚠️
...rnal/namespaces/vpcgw/v2/custom_gateway_network.go 0.00% 2 Missing ⚠️
internal/args/args.go 0.00% 1 Missing ⚠️
.../namespaces/applesilicon/v1alpha1/custom_server.go 0.00% 1 Missing ⚠️
...al/namespaces/baremetal/v1/custom_server_delete.go 0.00% 1 Missing ⚠️
...nal/namespaces/instance/v1/custom_server_action.go 75.00% 1 Missing ⚠️
... and 10 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5332   +/-   ##
=======================================
  Coverage   55.44%   55.44%           
=======================================
  Files         320      320           
  Lines       72233    72227    -6     
=======================================
- Hits        40046    40043    -3     
+ Misses      30693    30690    -3     
  Partials     1494     1494           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request claims to migrate the codebase from Go 1.25.5 to Go 1.26.0. However, there are critical issues with this migration as Go 1.26.0 does not exist as of January 2025 (the latest stable release is Go 1.23.x). The changes attempt to use non-standard Go syntax that would not compile with any current Go version.

Changes:

  • Update Go version in go.mod from 1.25.5 to 1.26.0 (both versions are invalid)
  • Replace SDK helper functions (scw.StringPtr, scw.BoolPtr, etc.) with new() builtin using invalid syntax
  • Replace reflect API NumField() iteration with non-existent Fields() method
  • Update golangci-lint version to an invalid version number

Reviewed changes

Copilot reviewed 60 out of 60 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
go.mod Updates Go version to non-existent 1.26.0
.github/workflows/lint.yml Changes golangci-lint version to invalid "2.9.0"
internal/platform/terminal/terminal_client.go Replaces scw.StringPtr with invalid new() syntax
internal/namespaces/vpcgw/v2/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/vpcgw/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/redis/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/rdb/v1/*.go Replaces pointer helper functions with invalid new() syntax
internal/namespaces/object/v1/*.go Replaces scw.StringPtr and scw.BoolPtr with invalid new() syntax
internal/namespaces/mongodb/v1alpha1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/lb/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/k8s/v1/*.go Replaces pointer helper functions with invalid new() syntax
internal/namespaces/iot/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/instance/v1/*.go Replaces pointer helper functions with invalid new() syntax
internal/namespaces/init/*.go Replaces scw.StringPtr and scw.BoolPtr with invalid new() syntax
internal/namespaces/inference/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/function/v1beta1/*.go Replaces scw.BoolPtr with invalid new() syntax
internal/namespaces/flexibleip/v1alpha1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/container/v1beta1/*.go Replaces pointer helper functions with invalid new() syntax
internal/namespaces/config/*.go Replaces pointer helper functions with invalid new() syntax and invalid reflect API usage
internal/namespaces/block/v1alpha1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/baremetal/v1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/namespaces/applesilicon/v1alpha1/*.go Replaces scw.TimeDurationPtr with invalid new() syntax
internal/gofields/gofields.go Replaces valid reflect API with non-existent Fields() method
internal/editor/reflect_test.go Replaces scw.StringPtr with invalid new() syntax
internal/args/*.go Replaces valid reflect API with non-existent Fields() method
core/testing.go Replaces scw.TimePtr with invalid new() syntax
core/reflect.go Replaces valid reflect API with non-existent Fields() method
core/human/marshal.go Replaces valid reflect API with non-existent Fields() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/namespaces/instance/v1/custom_server_create_builder.go
Comment thread internal/namespaces/vpcgw/v2/custom_gateway_network.go
Comment thread core/reflect.go Outdated
Comment thread internal/namespaces/object/v1/s3_helpers.go
Comment thread internal/namespaces/instance/v1/custom_server_create_builder.go
Comment thread internal/namespaces/rdb/v1/custom_instance.go
Comment thread internal/platform/terminal/terminal_client.go
Comment thread internal/namespaces/rdb/v1/custom_endpoint_test.go
Comment thread internal/args/args.go Outdated
@remyleone remyleone added this pull request to the merge queue Feb 17, 2026
Merged via the queue into scaleway:master with commit 11a7bdc Feb 17, 2026
123 checks passed
@remyleone remyleone deleted the go126 branch February 17, 2026 17:07
jremy42 pushed a commit that referenced this pull request Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apple-silicon Apple Silicon issues, bugs and feature requests baremetal container Container issues, bugs and feature requests flexible-ip Flexible IP issues, bugs and feature requests function Serverless function issues, bugs and feature requests instance Instance issues, bugs and feature requests iot IoT issues, bugs and feature requests k8s Kubernetes Kapsule issues, bugs and feature requests load-balancer Load-balancer issues, bugs and feature requests rdb Managed MySQL and PostgreSQL issues, bugs and feature requests redis Managed Redis issues, bugs and feature requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants